<!--
  Generated template for the PermissionDemoPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>菜单权限演示</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-card>
    <ion-card-header>
      后台权限配置没有改动情况下:
    </ion-card-header>
    <ion-card-content>
      登录test/123456,可以看到3个菜单;<br>
      登录t1/123456,可以看到2个菜单
    </ion-card-content>
  </ion-card>
  <ul class="menu">
    <li *ngFor="let item of menu" tappable (click)="navigation(item.code)">
      <ion-icon name="{{item.icon}}" [ngStyle]="{'background-color': item.color}"></ion-icon>
      <div [ngStyle]="{'color': item.color}">{{item.name}}</div>
    </li>
  </ul>
</ion-content>
